/* const open = require('open');     //执行语句
open('C:/Users/15776/Desktop/111.json'); */
var robot = require("robotjs");  
var screenSize = robot.getScreenSize();
robot.moveMouse(screenSize.width-389, screenSize.height-977);
robot.mouseClick();//鼠标点击
robot.setMouseDelay(1000)
robot.typeString("daihuiqu"); //键盘输入
// robot.keyTap("3"); //键盘点击
robot.keyTap("enter"); //键盘点击

/* robot.moveMouse(screenSize.width-508, screenSize.height-54);
var Color = robot.mouseToggle()
console.log('Color',Color) */


/* robot.mouseToggle("down");

setTimeout(function()
{
    robot.mouseToggle("up");

}, 2000);
 */

/* var screenSize = robot.getScreenSize();
robot.moveMouse(screenSize.width-389, screenSize.height-977);
robot.mouseToggle('up', 'right')//鼠标点击右键 */

//将鼠标向下移动到0，0，然后拖动到100，100并释放。
/* robot.moveMouse(0, 0);
robot.mouseToggle("down");
robot.dragMouse(100, 100);
robot.mouseToggle("up"); */



/* var robot = require("robotjs");   //控制鼠标键盘等操作
 
var screenSize = robot.getScreenSize();
robot.moveMouseSmooth(screenSize.width-140, screenSize.height-20);//移动鼠标
robot.setMouseDelay(1000)
robot.mouseClick();//鼠标点击
robot.moveMouseSmooth(screenSize.width-140, screenSize.height-560);
robot.setMouseDelay(2000)
robot.mouseClick()
robot.moveMouseSmooth(screenSize.width-140, screenSize.height-490);
robot.setMouseDelay(1000)
robot.mouseClick() */
// open('C:/Users/15776/Desktop/111.json');
//自动打开程序（文件地址自己修改即可）
/* open('C:/Users/seagm/Desktop/GitHub Desktop')
open('C:/Users/seagm/Desktop/Visual Studio Code')
open('', {app: 'chrome'});
setTimeout(()=>{open('C:/Program Files (x86)/Tencent/WeChat/WeChat.exe')},2000) */